home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 9 / The PC-SIG Library on CD ROM - Ninth Edition.iso / 1501_600 / DISK1524 / DISK1524.ZIP / SPROGH.DOC < prev    next >
Text File  |  1989-06-08  |  22KB  |  394 lines

  1.                                 SPROGH!
  2.                                 ver 3.2
  3.             The Spirograph simulator with a smidgeon more.
  4.  
  5. Copyright(C)  Phil Paustian
  6. Address:      Box 644
  7.               Terry, MT  59349
  8.  
  9. Hardware required:IBM-PC or compatible with graphics card.
  10.  
  11. Disclaimer: If something goes wrong, I didn't do it, I don't know who did
  12. it, and besides, it wasn't my fault.
  13.  
  14.  
  15.     Sprogh is a program that simulates the curved designs of a spirograph.  
  16. As you can probably imagine, a spirograph is something that is much easier
  17. to use than it is to describe.  I would guess that you will learn alot more 
  18. about this program by running it than you will by reading this manual. 
  19. However, I will give you a brief description of all of the commands to help 
  20. you as well as I can.
  21.     I suggest printing out this manual and reading the appropriate sections 
  22. as you use the program.  From DOS you can use the command
  23. "TYPE SPROGH.DOC >PRN" to get a copy on your printer.
  24.  
  25.         RUNNING SPROGH
  26.  
  27.     From DOS type "Sprogh".  You can watch the introductory screen draw two
  28. sample spirograph designs, or press any key to start.  Hit "C" for color or
  29. "M" for monochrome and the program will begin.
  30.     You will be presented a menu with seventeen choices, a rather
  31. intimidating assortment of arcane jargon.  To enter any menu
  32. selection simply hit the first letter of that command (the capitalized
  33. letter).  For the novice, the commands you will want to learn first
  34. are Disk, Ring, Pen, Go, Clear, Quit, and Examples.  Once you've mastered
  35. these you can move on to the other commands. Start at the top and the
  36. bottom of the menu and work your way toward the middle.
  37.  
  38.                                  GO
  39.     Go:  This command tells the computer to draw the presently set design.  
  40. Just hit the letter "G" and it goes to work.  You must first put numbers
  41. into "Disk gears" and "Ring gears" so it will know what to draw.  You will 
  42. be returned to the menu as soon as the design is completed.  If you want
  43. to stop sooner, just hit any key while the design is being drawn to get
  44. back to the menu.
  45.  
  46.                             CLEAR SCREEN
  47.     Clear screen:  Hit the letter "C" to erase the screen.  Simple enough.  
  48. Maybe too simple.  Before you go wiping out designs indescriminately, think 
  49. for a moment of the tragic loss.  If Leonardo da Vinci had had a "C" key
  50. the world might never have seen Mona's smile.
  51.  
  52.                                 QUIT
  53.     Quit:  Hit "Q" to quit.  You will be asked "ARE YOU SURE?"  Press "Y"
  54. to quit or any other key to continue.  Naturally you will be so enthralled
  55. by SPROGH that you will wish you never had to use this command.  But such
  56. is life.  All good things must have a "Quit" command.
  57.  
  58.                             DISK and RING
  59.     Disk and Ring: First a brief refresher course in spirography. If you
  60. remember the spirograph you had when you were much, much younger, you had
  61. an assortment of plastic rings which had to be pinned down onto the paper.
  62. You also had some smaller round disks that were spun around inside the ring
  63. to create a design. The ring and disk had alot of gear teeth around their
  64. rim. The "Disk gear" command asks you to tell the computer how many gears
  65. the disk should have. When you are in the menu, hit the letter "D" and a
  66. prompt at the bottom of the screen will ask you what to change Disk gears
  67. to. Type in a number and hit return. Or you can just hit return without any
  68. number to leave the number unchanged. You may also hit the escape key at
  69. any time to get out of any command you didn't want to make.
  70.     Both Disk and Ring must be set at some number other than 0 before you
  71. can draw a design. The larger the number, the larger the disk will be. The
  72. same thing goes for the "Ring gear" command.
  73.     Actually, the program will automatically draw every design the same
  74. size, large enough to fill the screen, unless you tell it not to.  So
  75. changing "Disk" or "Ring" will not affect the size of the design.  But the
  76. combination of those two numbers will tell the program what design to draw. 
  77. To create an authentic spirograph design Ring should be a larger number
  78. than Disk (otherwise the disk wouldn't fit inside the ring, obviously), but 
  79. the program won't complain if you throw logic out the window.
  80.     By experimenting with these two numbers you will learn that whenever
  81. the Ring is three times the size of Disk the program will always draw a
  82. triangular design. But if you use very large numbers the design will be
  83. drawn very slowly. Using smaller numbers will speed up the drawing, but if
  84. the numbers are too small, let's say below twenty or so, the curve will not
  85. be smooth.
  86.     Try these examples:
  87.         C D 20 [Return] R 60 [Return] G 
  88.         C D 100 [Return] R 300 [Return] G
  89.         C D 8 [Return] R 24 [Return] G
  90.     Then try these variations:
  91.         C D 20 [Return] R 80 [Return] G
  92.         C D 20 [Return] R 82 [Return] G
  93.         C D 20 [Return] R 42 [Return] G
  94.     By now you're ready to choose your own designs.  Experiment.  Be
  95. daring.  Let your spirit guide you to all the images you can create.  Let
  96. the immortal Muse of Spirography inspire the artist within your soul.
  97.     But wait.  With a real spirograph, there are two ways to make a design, 
  98. by spinning the disk inside the ring, and by spinning it outside.  With
  99. SPROGH creating an outside design is as simple as using a negative number
  100. for either Disk or Ring (not both). Like this:
  101.         D -30 [Return] R 100 [Return] G
  102.  
  103.                                  PEN
  104.     Pen position: Another method you can use in a real spirograph to change
  105. the way a design looks is by moving the pen position. Every disk had a
  106. number of holes in it. If you put the pen in a hole near the edge of the
  107. disk, you got a design with sharp points. Holes near the center gave
  108. nothing but gentle curves. This effect is acheived with SPROGH by changing
  109. "Pen position". If Pen is 1, the pen is set right at the edge of the disk;
  110. if Pen is 0, the pen is in the center of the disk. You can choose any
  111. position between those two extremes, or you can take a step beyond what was
  112. possible with a real spirograph by setting Pen at a number greater than 1.
  113. That puts the pen outside the physical border of the disk.
  114.     If you are really astute you will realize that a real spirograph could
  115. draw these impossible designs, but only by choosing a different disk size.
  116. But please don't give yourself a headache trying to figure out how.
  117.     Try out some examples:
  118.         C D 30 [Return] R 120 [Return] P 1 [Return] G
  119.         P .5 [Return] G
  120.         P 1.5 [Return] G
  121.         P 0 [Return] G
  122.     Of course, all these designs are the same size because the program is
  123. automatically making every design fill the screen.  See the section of this 
  124. manual on "Size" to learn how to change that. 
  125.     This might be a good time to mention a couple features of this program 
  126. that make entering numbers easier. The left arrow key can be used as a
  127. backspace, while the right arrow key will either type one character from
  128. the default (previous) setting, or it will retype what you destroyed with
  129. the backspace. Hitting the center key on the numberpad, the '5' key, will
  130. type the entire default.
  131.     Secondly, instead of entering numbers directly and absolutely, you have
  132. the option of adding a number to the present setting. Simply type a '+'
  133. before the number and it will be added to the default, or a '+-' (Plus
  134. sign, Minus sign) to subtract. For example if P is 1.5 then typing 'P+.1'
  135. makes it 1.6. Typing 'P+-1.1' will then set the pen position to .5.
  136.  
  137.                               EXAMPLES
  138.     Examples:  Just hit the letter "E" and the computer will begin drawing
  139. several examples of what this program is able to do.  At any time while a
  140. design is being drawn you can simply hit any key and you will be returned
  141. to the menu.  When you stop the examples, the menu will show you the
  142. numbers that were required to create this design.
  143.     If you have mastered these commands, you are ready to explore all the
  144. possibilities SPROGH has to offer.  Check out each of the remaining
  145. commands as you wish.
  146.  
  147.                                 MOVE
  148.     Move:  You can move the design anywhere you choose on the screen.  The
  149. screen is set up so that the top of the screen is "U 100".  The
  150. bottom is "D 100".  The left and right sides are "L 150" and "R 150". Keep 
  151. the design within those limits.  To make a move hit "M" followed by the
  152. letter corresponding to the direction you want to move, followed by the
  153. distance and [Return]. Prompts at the bottom of the screen will remind you
  154. what to do, and a crosshair will show you where you're at on the screen. 
  155. You might choose to move the design to "R 50" so that it won't be covered
  156. up by the menu, especially on a color monitor that uses a bigger menu.
  157.  
  158.                                 TURN
  159.     Turn:  It does what it says, it turns the design whatever number of
  160. degrees you enter. "T 180" will set a design upside down, while "T 5" will
  161. just turn it slightly out of its normal position.  "T+5" will turn it five
  162. degrees from its previous setting, and this simplifies the task if you want 
  163. to draw the same design several times turning the design just a little bit
  164. each time.  One good turn deserves another.
  165.     There is one special function of Turn.  If you set Turn at 999, the design 
  166. will continue drawing from where it left off.  That allows you to stop a 
  167. drawing in the middle, then change the color for instance, then continue with 
  168. the rest of the design.  However, the computer won't automatically quit
  169. drawing now until it reaches the spot where it was restarted.
  170.  
  171.                                 SIZE
  172.     Size:  To change the size of a design hit "S".  You will be given three
  173. choices, "Auto, Fixed, or Nested".  Hit "A", "F" or "N".
  174.     If you choose "Auto" you will be asked to enter a number, usually
  175. between 0 and 1 if you want the design to fit on the screen.  Entering .5
  176. will give you a design one half as large as the normal size; .1 would be
  177. one tenth the normal size.  You get the idea.  The current size is
  178. indicated by the number under the word size in the menu.
  179.     Your second option is "Fixed".  Hitting the letter "F" will freeze the 
  180. scale at the present setting.  That means that from now on, different
  181. designs will be different sizes.  Instead of every design filling the
  182. screen automatically, now the ring is fixed to its present position on the 
  183. screen, and future drawings have to rotate around this ring position. 
  184.     Setting a smaller Pen position will give you a smaller design, choosing
  185. different Disk or Ring settings will also change the size. This option is
  186. handy for making inner designs fit inside outer designs, or making changes
  187. in the Pen position act exactly as they would in a "real spirograph."
  188. (Pretty soon I'm going to have to start calling a "real spirograph" what it
  189. really is, nothing more than a "Manually-operated Sprogh.")
  190.     For example, choose Disk and Ring settings you like, then make several
  191. designs using different pen positions to remind yourself what that does. 
  192. Now clear the screen, set Pen position at '2', hit 'S F', and you are in
  193. Fixed mode.  Draw the design, change Pen position to 1.5 and draw it again. 
  194. Make several more drawings with Pen position anywhere between 0 and 2.  If
  195. you make Pen position greater than 2, the design will be too large for the
  196. screen, but I can tell you're just the kind of rebel who's going to do it
  197. anyway just because I told you not to.  To get back to "Auto" mode, type
  198. "S A [Return]".
  199.     The final choice is "Nested".  Nested calculates how large a hole
  200. exists in the center of the design.  It then changes the "Size" to cause
  201. new designs to fit in the center.  It also changes size to "Auto" so that
  202. any design drawn now will fit neatly inside that hole.
  203.     Whew.  That was confusing.  If you now understand how to use the
  204. various size options, you are truly a SPROGHmeister.  If not, a little
  205. experimentation might teach you enough to use these commands profitably.
  206.  
  207.                                 OVAL
  208.     Oval:  You can make your drawing either a vertical or horizontal oval
  209. by changing this number.  A setting of 1 gives you a circle.  A setting
  210. between 0 and 1 gives a tall oval, while settings greater than 1 create wide 
  211. ovals.  One way you might choose to use this setting is to really make
  212. SPROGH fill the whole screen.  Here's how:
  213.         Type "O 1.5 [Return] S A 1.5 [Return]"
  214. This will give you an oval that is as wide and as tall as the screen.
  215.  
  216.                                 HUE
  217.     Hue: That means color, but I had to use "C" to clear the screen, so
  218. you'll just have to get used to saying Hue. I have to admit that I only
  219. have a Hercules monochrome monitor, so I have not tested this program with
  220. color. Let me know if it works. With monochrome screens the only thing this
  221. command will do is set the color black or white. Even numbers (Black) can
  222. be used to erase designs without clearing the whole screen.
  223.  
  224.                              LOAD/SAVE
  225.     Load/save:  For saving your masterpieces.  When you hit "L" you are
  226. given two options, Disk or Memory.  You can save a design on disk (in
  227. Basic Bload format) by choosing the Disk option. Simply tell the computer
  228. whether you want to load an image from disk or save one to disk. Then enter
  229. the file name. If you do not type in a file name, the computer will use the
  230. default "SPIRO1".
  231.     Your second option here is to load/save to memory.  At any time the
  232. program can hold one image in memory.  You can use this to undo a mistake,
  233. or to easily combine two or more images.  When you choose to load an image
  234. from memory, there will be four options to choose from.  They are:
  235.     RESTORE: erases whatever is presently on the screen and brings back the 
  236. saved image exactly as it was stored.
  237.     NEGATIVE: erases the screen and brings back the old image with the 
  238. color reversed, so every black pixel is white and vice versa.
  239.     SUM: adds the saved image to the image presently on the screen. Any
  240. point that was white on either screen will remain white.
  241.     ICON: adds the saved image in a way that allows it to be subtracted
  242. again.  Choosing this option once adds the saved image to the present
  243. image.  Choosing it a second time erases the saved image and returns the
  244. screen to the same condition it was in before you loaded that image.
  245.  
  246.                                BLANK
  247.     Blank menu:  This command erases the menu so it never hides the design.
  248. Hitting "B" a second time will restore the menu.
  249.  
  250.                                WIPE
  251.     Wipe: This is a paint fill-in command.  Choose a color or pattern to
  252. fill in either inside or outside of your design.  Use the Move command to
  253. move the crosshairs to the section of the screen you wish to fill in.  Then 
  254. hit "W" for wipe. Now enter a number from 1 to 8 to fill in that part of
  255. the screen with a solid color, or a number from 10 to 99 to choose a tile
  256. pattern. The color or pattern you choose will paint the screen, filling
  257. outward until it reaches any line that is the color of the presently set
  258. Hue. Experiment and you'll see what I mean.
  259. Examples:
  260. "C W1 [Return]"
  261. "C W96 [Return]"
  262. "C D20 [Return] R85 [Return] G W96 [Return] M R 130 [Return] W96 [Return]"
  263.     This program was written using a Hercules monitor.  So I confess I have 
  264. absolutely no idea whether these patterns will work as expected on a color
  265. screen.  I suspect most will be garbage in color. But just in case they do 
  266. work, but you don't like the colors try patterns from 110 on up to about
  267. 5000.  These are the same 90 patterns with various color shifts. Drop me a
  268. line and tell me how it looks.
  269.  
  270.                                AGAIN
  271.     Again:  This is one of those commands that was created with the true
  272. Sproghmeister in mind.  This command lets you repeat any series of commands 
  273. over and over.  When you choose this option, you will be asked to enter the 
  274. command list.  Simply type in the commands exactly as you would normally,
  275. but without hitting [Return] until you're finished.  After you hit [Return] 
  276. you will be asked how many times to repeat.
  277.     For example, hit "A". Then at the "Again:" prompt, type
  278. "ML5T+5P+-.1G [Return]" The computer will now ask "How many times?"
  279. Type "10 [Return]". The computer will now Move Left 5, Turn 5 degrees,
  280. Subtract 0.1 from the current Pen position, and draw the design. Then it
  281. will do it again 9 more times. 
  282.     One more feature of Again:  place an "A" at the end of the command list 
  283. and when the computer reaches the "A" it will start over at the beginning.  
  284. This will give you an infinite loop.  For example, at the "Again:" prompt,
  285. type "H+1GA".  This will draw the same design over and over, just
  286. changing the color each time.  On a monochrome screen it will draw the
  287. design, then erase it, then draw it again, over and over and over.
  288.     If you so desire, you can also put a number after the "G" to tell the
  289. program who many points to draw before it quits, in case you want it to
  290. stop drawing before the design is finished.  You'll have to use trial
  291. and error to determine how large a number you want to use.  One possible
  292. use on a color monitor: set Turn to 999. Then enter the Again command and
  293. type this string:
  294.     H+1G3A
  295. That will draw your design in constantly changing colors.
  296.  
  297.                                 FORM
  298.     Form:  We have come to the last command.  I saved this one for last
  299. because it is not really part of a real spirograph simulation.  Hitting "F" 
  300. toggles the program back and forth between Gear input and Degree input. 
  301. You will notice that when you hit "F" the numbers under Disk and Ring
  302. change.  If a disk has 20 gear teeth around its rim, then each tooth is 18
  303. degrees wide (20 x 18 = 360 degrees). If it has 60 gear teeth, each tooth
  304. is 6 degrees wide. "Form Degrees" lets you enter those numbers by the
  305. number of degrees instead of by the number of gear teeth.
  306.     But that isn't the only thing this command changes. The Disk and Ring
  307. sizes and rotation are also calculated differently. This command is useful
  308. for creating unusual designs that look nothing like a spirograph. In a
  309. spirograph you will normally use Disk and Ring settings between around 20
  310. to around 200 or so. With "Form: Degrees" you should try using all numbers
  311. between 1 and 360.
  312.     It will be more of a challenge to find designs that look aesthetic with 
  313. "Form: Degrees".  But some people like a challenge.  Hit "F" to get into
  314. the "Form: Degrees" mode, and then hit "E" to see a half dozen examples of
  315. what you can do.  You will see that these designs are very angular, unlike
  316. a spirograph.  They are also more complex and varied than a spirograph. 
  317. While running the examples, you can hit a key at any time to stop, and then 
  318. look at the Disk and Ring settings to see what numbers created those
  319. designs.
  320.  
  321.                              THE HIDDEN COMMANDS
  322.     There are a couple of commands that are not mentioned in the menu.  It
  323. sounds mysterious and vaguely ominous, but the truth is, I just ran out of
  324. room in the menu, and the remaining commands are too trivial and useless to 
  325. deserve mention.  Judge for yourself.  The hidden commands are:
  326.  
  327.                              INITIALIZE
  328.     Initialize:  This command simply resets all variables to their original 
  329. value except Disk and Ring.  It's not a command you'll use very often, but
  330. it might save a few keystrokes once in a while.
  331.  
  332.                              VERSION
  333.     Version:  Tells you the version number of your copy of Sprogh and
  334. reminds you to send in your checks and money orders and IOU's and the
  335. change you dug out of the sofa to yours truly.
  336.  
  337.                              ZILCH
  338.     Zilch:  Does absolutely nothing except delays one second and beeps at
  339. you. The only conceivable use for this command is to slow down an Again
  340. Command.  Example: Type "C W10 [Return]"; Hit "A"; Enter "CW+1Z [Return]"
  341. When you are asked "How many times?" Enter "90".  The program will now show 
  342. you all the Wipe patterns available and give you one second to view each
  343. before showing the next one.
  344.  
  345.  
  346.  
  347.     The rest is up to you.  Drop me a line with any suggestions or comments 
  348. you might have.  If you find this program interesting or you just feel very 
  349. charitable, please register by sending the low, low price of $4.37 to Box
  350. 644, Terry, MT 59349.  If the program totally bored or confused you, we
  351. offer a specially discounted price of $4.29.  What will you get when you
  352. register, you ask?  You get my undying thanks and devotion.  I guess $4.37
  353. just doesn't buy as much as it used to.              Enjoy!
  354.  
  355.  
  356.         Handy Registration Form
  357. _________________________________________________________________________
  358.  
  359. SPROGH REGISTRATION
  360. VERSION 3.2
  361.  
  362. Mail your registration check to:
  363. Phil Paustian
  364. Box 644
  365. Terry, Montana  59349
  366.  
  367. Check One:
  368.     ___ Yes, I want to do my part supporting your outstanding achievement
  369.         in pointless programming.  Enclosed you will find my check for
  370.         $4.37.  I understand that I will receive a personal autograph from
  371.         the author himself, on the back of my cancelled check, suitable for
  372.         framing.  And if I am the one thousandth registerer, I will win a
  373.         free T-shirt emblazoned with the company motto; SPROGH, IT'S NOT
  374.         JUST FOR THE SEMI-COMATOSE!
  375.  
  376.     ___ This program totally bored and confused me.  Here's my check for
  377.         $4.29.
  378.  
  379.     ___ No, I do not wish to register at this time, but here is my name and 
  380.         address, so you can harass me and my family, day and night, until we
  381.         fork over the money.
  382.  
  383. Name:______________________________________________________________________
  384.     (First name, Last name, and cruel nickname they called you in school)
  385.  
  386. Address:___________________________________________________________________
  387.  
  388. City:________________________________State:___________Zip Code_____________
  389.  
  390. Comments and Suggestions:__________________________________________________
  391.  
  392. ___________________________________________________________________________
  393.  
  394.